Why do I keep getting this error?
I should be able to use this global function right?
http://www.html5rocks.com/en/tutorials/workers/basics/
I\'m usi
This code needs to be inside a worker script. The worker itself is created via a new Worker object - see Getting Started in the tutorial.
Worker
The code you've linked is inside the worker created here.