Updated worker.js