Fixes to heroku javascript ver411