added jQuery events to the javascript components