fix demo modal js for iOS