updated model methods in simpleRest.js