better browserify support, refs #3