Emscripten

I think the emscripten stuff is more or less ready to merged, any comments, @mortenvp, @petya2164? 
you can use another char, it was just to highlight the issue.