remove cruft from common CP jQuery plugin