Refactored JESWorker to be completely asynchronous.
Javascript is a funny guy