improvements in require: more clear
updated web worker with the new require,
tests with worker and director exchanging structured messages