Update calculate_worker.js