added js asyncCurtain