added demo page and helper.js code to gh-pages branch