A few more fixes for jshint bugs: Model and Router

Hi,

I found a few more jshint-ing bugs with the generators for model and router.

Following those bugfixes I noticed that the non-require amd cases didn't work either, so I've "fixed" the indenting to 4 spaces and added a globals comment as appropriate for each file.

I guess the correct way to fix the globals issue would be to update the jshint globals option in the Gruntfile but I am unsure how to do this. This at least means that grunt will at least run initially rather than fail.