Use Modularize instead of wrapping emcc's output.

This seems to work pretty nicely and should be future proof.
6 files changed