I’d like to run a complex calculation on browser using JavaScript. So far my efforts just hang the browser, whereas I would like to provide progress updates to reassure user that things are working as expected. Any pointers or references on how to tackle this would be gratefully received.