rename demo.js to model.js