beginning restructure to try emscripten