Add the demo.js implementation