moved all js to head (except analytics)