Made custom javascript.erb compatible for heroku background