Ported web-worker spawning to JsMessage