Emscripten

I think the emscripten stuff is more or less ready to merged, any comments, @mortenvp, @petya2164? 
We should use the node.js runtime that is bundled with the emscripten SDK. So let's add the path_list here.