updated to work with browserify v3
Merge pull request #4 from jameslnewell/master

Updated to work with browserify v3