Exposing the global javascript context