moved js.erb changes to .js