Change `var worker` to `this.worker` so it persists in background.
Merge pull request #1 from audreyt/patch-1

 Change `var worker` to `this.worker` so it persists in background.