fixed demo.js