Update main.js
Merge branch 'master' into gh-pages