First attempt at emscripten

Links but doesn't run