[emscripten] Updating extension makefile.
Merge pull request #2861 from dumganhar/master

[emscripten] Updating extension makefile.