broswerify EventEmitter and some math functions