removed templates for jsGlobals (they will now be written directly)
* as always, some bug fixes