Change config.assets.compile = true
Comment out 'config.assets.compile=true' then uncomment 'config.assets.precompile += %w( search.js )