Define module.exports in browser environments