moved javascripts to the bottom