Remove model.js module to service.js module. Fix some jshint codestyle issues