perform the events in canvas through jquery