added offscreen.js script