Added config.assets.precompile += %w( search.js ) in application.rb and added sprockets better error gem