config.assets.precompile += %w( index.js ) to the application.rb file