js: thread updater fix