Fixes crashes if module is undefined.
Fixes the emulation of webworkers.

The Worker.js didn't transmit the .data object like WebWorkers do.

The emulation is still not perfect, since you have to do stuff like
JSON.parse in manually, but it's pretty close.