[BUG #7810] add built-in globals check

- i'm using a jshint module, but it would be much nicer if there were an
  own npm module for just built-in globals