fix IE10 webworker test

Originally started as a simple fix for the webworker test. It got a bit out of hand hahaha. The test is fixed tho :)