edit curtainsOpening.js