model.js almost done.