Fixed remove handlers to work with latest version of jquery.