move javascript to bottom

move js to bottom of page to prevent blocking the critical render path