Fix node-ness of demo, add module.exports