Move demo JS to demo.js.