gh-pages script and some build optimization.
Moved demo to demo.js