JSLint directives must not start with a space. For example, /* global window*/ is not a valid directive, and will not be recognized by JSLint.

Remove the space: /*global window*/.

  • JSLint: JSLint Help.