fixing module.exports in browser