remove old js and update application.rb config