fix images in javascript templates for heroku