added event delegate
added JQuery example