A better demo.js