Remove obsolete code from worker.js.