move js from cached file to header.html.erb