remove global object when loaded as an AMD module.
Merge pull request #328 from firede/patch-1

remove global object when loaded as an AMD module.