added javascript to layouts application.html.erb page