Working webworkers and mediator design