[BUG #1966] minor doc
some experimental code for optimizing JS globals