adding a local (but global for the function) variable for "JSLINT" to make it work again