Somehow I didn't notice until now that using a Node.js only EventEmitter doesn't really work in browser, as I don't use it much myself. This needs changing to something that can work in browser.
Also the whole library is probably not compiled very well for browsers either, as I'm not used to making libraries that don't target Node.js, so need to look into that too.