Fix javascript
Merge pull request #1 from RobertCorey/fix-js

Fix javascript