I'm writing javascript code to update the interface from the user. This task has to be done in the background and shouldn't block anything. The code is currently blocking/crashing the browser, the while loop is causing the issue.I'm writing javascript code to update the inter