Onclick event delegation in Safari for iPhone