moved javascript loading back to top of application.html.erb