Updated with more information.
Renamed the Worker's postMessage function to sendMessage. Removed extra var used while iterating through task hadlers.
Renamed the Worker's postMessage function to sendMessage.