Update curtain.js

Fix to "uncaught TypeError: Cannot read property 'mozilla' of undefined"