Use the `worker` JSHint environment in worker

This defines the globals available to a Web Worker.