add return events and jquery library