fixed global variable assignment (also causes problems with some minifiers)
Merge pull request #18 from allbuttonspressed/master

fixed global variable assignment (also causes problems with some minifiers)