Use jQuery events consistently