passing cam to web workers