Don't bind to window.onload when jasmine is running

Exposed the methods that were actually being tested back into the global scope.