browserify support, fixes #16