JSHint

`w` was not defined, added linting checks for all vars that are not `window`, `document`, or `define`