Update curtain.js

Fix to "uncaught TypeError: Cannot read property 'mozilla' of undefined"
Merge pull request #39 from puneetsl/development/v2.0

Update curtain.js