Move analytics Javascript to a separate file