Errors: 85,5:'grammar' is not defined. Warning: 85,1: 'grammar' is an implied global variable.
/*global grammar */
This will tell it that the variable is declared at a global scope. Check out one of my projects for example.