Make module.exports browser compatible