Added Emscripten code to pages branch