modified worker.js