Moves code from flurry.js to index.js