Remove coded references to js and css files. Using asset pipeline instead