Refactorization, fix in workers, preparing web workers example to
demonstrate differences between synchronous and asynchronous calls