Moved model.js to server/js