added hook to jquery plugin