javascriptHint is very simplistic, you might want to look into Tern if you’re going to do serious completions. But you can pass javascriptHint a globalScope option, which is an object to use instead of window when completing globals. For example {poiBean: {getNumber: {}}} would tell it about the object you describe.
javascriptHint is no global variable …
How does such code look like?
I have in fact four beans to make completion aware.
The code
… global = options && options.globalScope || window;
seems to allow only one global object?
Or would it be