Add export to Uint8array
Do not pollute the global namespace
Fixes #7.
Include the compiled js api