Model.js setting properly