Modified the program so that the events of jQuery are fired on iPhone