Bug #11, Reduce number of JS errors in MSIE 8, plus [LACE]

* Document Javascript globals..