JS: Replaced fromCodePoint/codePointAt with fromCharCode/charCodeAt because of functions limited availability, fixed typo in tests.
diff --git a/js/binary/decoder_test.js b/js/binary/decoder_test.js
index 12da72a..9f947b9 100644
--- a/js/binary/decoder_test.js
+++ b/js/binary/decoder_test.js
@@ -218,19 +218,19 @@
 
     var ascii = "ASCII should work in 3, 2, 1..."
     var utf8_two_bytes = "©";
-    var utf8_tree_bytes = "❄";
+    var utf8_three_bytes = "❄";
     var utf8_four_bytes = "😁";
     
     encoder.writeString(ascii);
     encoder.writeString(utf8_two_bytes);
-    encoder.writeString(utf8_tree_bytes);
+    encoder.writeString(utf8_three_bytes);
     encoder.writeString(utf8_four_bytes);
     
     var decoder = jspb.BinaryDecoder.alloc(encoder.end());
     
     assertEquals(ascii, decoder.readString(ascii.length));
     assertEquals(utf8_two_bytes, decoder.readString(utf8_two_bytes.length));
-    assertEquals(utf8_tree_bytes, decoder.readString(utf8_tree_bytes.length));
+    assertEquals(utf8_three_bytes, decoder.readString(utf8_three_bytes.length));
     assertEquals(utf8_four_bytes, decoder.readString(utf8_four_bytes.length));
    });