changed script.js into script.js.erb and paths to images for heroku