Migrate on jQuery and cleanup