moved script tags from headers in new.html.erb to views/layouts