remove global object when loaded as an AMD module.

avoid dumping global variables in the page:
http://requirejs.org/docs/whyamd.html#youcando