createWorker(): Made the task script URL parameter optional