JS beautify, js event/method to open curtain

done!