Ensure JSMESS is globally exported.

This patch exports the internal module to the global scope.  At the
moment it isn't which is breaking for external scripts doing:

    var JSMESS = window.JSMESS || {};