Fixes to heroku javascript ver1009