fixed javascript
Merge pull request #11 from alexemmons/master

fixed javascript