update jquery plugin snippet