Bug fix to work with heroku.
Convert js to coffee to work with heroku preprocessor.