Multi-resolution emscripten html template.

Default emscripten html template update.
Minor emscripten warnings fix, and minor emscripten Makefile refactoring.