browserify/stitch support (cherrypicked from nixmrak)
simpler module.exports (assume available). added package.json