Improved way we deal with callbacks with web workers