Refactor the Javascript code to act like a module and not pollute the global namespace. Also, add tests. Also, return Float32Arrays rather than Javascript arrays for performance.
Use a consistent single-line comment style.
Fix a ROUND_MARGIN-related bug.
Merge pull request #1 from LuminosoInsight/javascript-refactor

Refactor the Javascript code.