updated with latest version of offscreen.js