The extern
keyword has nothing to do with JavaScript. It's some configuration on which js2-mode relies on to define the language.
For instance, I believe that you could add your own global variables js2-global-externs
so that they get recognized.
Have a look at this file https://code.google.com/p/js2-mode/source/browse/trunk/js2-externs.el?r=57