Fixes several leaks to the global scope.

Perhaps a port to coffeescript could prevent these. ;-)
Merge pull request #439 from CharString/master

Fixes several leaks to the global scope.