fixed some bad javascript
 precompiled for heroku