This example demonstrates calling emscripten:run_script/1 and
emscripten:run_script/2 to run Javascript from Erlang.
It runs four Javascript scripts:
On non-SMP builds, it demonstrates the fact that Erlang continues to run
when emscripten:run_script/2 is called with
[main_thread] as a counter is incremented while waiting for
first line to be printed. The value is unset
Beyond the counter, this example also demonstrates manipulating DOM (in the main thread) using JS function.