Fixed some mobile compatibility issues in curtainjs