Abstract web workers with jQuery