Fix jumpy js for iOS