move google analytics to head of the page (recommended by google). Slight code cleanup