Add model.js script generation

@raymondfeng @bajtos please review
It would be better to use `this.getPath` and swap the extension for json. Otherwise these two paths may get out of sync, in which case the `.js` file will be ignored by `loopback-boot`.