update jquery plugin hooks