Bug 1009136 - Removed some duplication in workers/index.js