browserify support, closes #3