Fixes #142, UIUtils.js in WebInspector fails when result[i++] is wrong
Need to return the pre value not the post value.
(These bugs are fallout from the big Linearization refactorization)
Define the global names before loading .js files, to centralize
the definition of 'global' which depends upon the environment