change keyup to settimeout, becauseof ios5 keyup problem