27
From jslint's website, you can read about a /global/ directive that allows you to set variables that are assumed to be declared elsewhere.
Here is an example (put this at the top of the file):
/\*global var1,var2,var3,var4,var5\*/
or, in starjava's case:
/\*global document\*/
I'm not actually sure if the :true or :false is needed, but it looks like it's recommended from what I read on the site. http://www.jslint.com/lint.html
Make sure the initial global statement is on the same line as '/\*', or else it breaks.