move webpage alterations to worker thread