added better support for node and browserify

added support for node/browserify and updated dependencies. this fixes #30