Fix for module.exports in browserify/commonJS environments