move javascript to html footer