Fixed browserify support.
Actually root should just be window for browserify to work.
Merge pull request #7 from alexgorbatchev/master

Fixes browserify support.