added createWorkerUrl, fixed missing vars