demo.js: removed function