move javascript to end of page