Replace JSHint `predef` with `globals`

It looks like `predef` was deprecated in favor of `globals` some time ago.
Merge pull request #440 from jas/master

Replace JSHint `predef` with `globals`