Uses setTimeout to stop onmessage from blocking main thread #2