[backends/jscommon] Own name from main loop
[backends/jscommon] Flush all messages before quitting