fix some of the formatting of demo.js