PHPified the workers
added Array.prototype.thenEach, .always, and .then