Don't know what a worker is? Check these out:
Simple Example
Executing a Loop in a Worker
Making nested JSON request in a Worker