added jquery code
click and dbl click events are added