adding model.js