moved javascripts to the bottom of the document