rewrite, use browserify-bundle-factory