moved javascripts to top