vendor compiled assets
use rails helper method to include assets, makes sure path works for production as well with correct precompiled paths.
change script.js to js.erb and use asset_path to get the path to background images.
precompile assets with new assets paths in application.js