move javascript to the bottom of the markup