cleaned up demo.js in JSLint