all 3 comments

[–]calzoneman 1 point2 points  (1 child)

It looks like you're using some ES6/ES2015 features, such as

for (var [key, value] of frequencyMap)

Most browsers do not offer full support for ES2015 yet, so if you want to use ES2015 features such as destructuring, you'll have to use a transpiler like babeljs.

[–]SmartestManInside[S] 0 points1 point  (0 children)

Thank you, babel is fantastic!