Fixed a memory allocation error.
js: renamed emph_stack -> emphasis_openers.
js:  Use linked list instead of array for emphasis_openers stack.