Add support for emscripten as a compilation target

This allows tidy to be compiled as a .js file, and run in a browser

Demo here: http://lovasoa.github.io/tidy-html5/demo.html