moved javascripts to the header