changed js files to js.erb with asset paths