Reorganize main.js
Merge branch 'master' of https://github.com/stoskov/ice-sample-analytics.git