Make browserify compatible
Merge pull request #2 from bengourley/master

Make browserify compatible