After discovering the exports from emscripten I cleaned up a bunch of code in the decoder.
Decided to use a different approach to decoding that more accurately matched the original h264bsd API.
Changed the names of the classes and made the canvas match the new API.
Still needs testing.