Query and update the browser dom from multiple threads