Calculate the MegaHash of a file using JavaScript Web Workers