reverting demo.js changes