Index: graphspell-js/ibdawg.js
==================================================================
--- graphspell-js/ibdawg.js
+++ graphspell-js/ibdawg.js
@@ -120,11 +120,11 @@
         /* end of bug workaround */
 
         if (!this.sHeader.startsWith("/pyfsa/")) {
             throw TypeError("# Error. Not a pyfsa binary dictionary. Header: " + this.sHeader);
         }
-        if (!(this.nCompressionMethod == "1" || this.nCompressionMethod == "2" || this.nCompressionMethod == "3")) {
+        if (!(this.nCompressionMethod == 1 || this.nCompressionMethod == 2 || this.nCompressionMethod == 3)) {
             throw RangeError("# Error. Unknown dictionary compression method: " + this.nCompressionMethod);
         }
         // <dChar> to get the value of an arc, <dCharVal> to get the char of an arc with its value
         this.dChar = helpers.objectToMap(this.dChar);
         this.dCharVal = this.dChar.gl_reverse();

Index: graphspell-js/str_transform.js
==================================================================
--- graphspell-js/str_transform.js
+++ graphspell-js/str_transform.js
@@ -211,8 +211,8 @@
     }
 };
 
 
 if (typeof(exports) !== 'undefined') {
-    exports.getStemFromSuffixCode = str_transform.getStemFromSuffixCode;
-    exports.getStemFromAffixCode = str_transform.getStemFromAffixCode;
+    exports.changeWordWithSuffixCode = str_transform.changeWordWithSuffixCode;
+    exports.changeWordWithAffixCode = str_transform.changeWordWithAffixCode;
 }