What are you thinking should be done in the web worker? This chunk of code modifies the UI.