GA stuff isolated form index.html to main.js