sample worker/client on javascript