add npm/browserify compatibility