fix jquery syntax error detection in ios 7