fix "TypeError: Object #<Object> has no method 'global'"
Merge pull request #91 from ramitos/patch-1

fix "TypeError: Object #<Object> has no method 'global'"