Fixing bug where Ajax didn't work on iPad