support node-like require (+browserify)