added model.js and