Have emscripten.py access the cache module and instantiate objects to break another dependency on shared.py