working with browserify to achieve dual usage