js : use dispatchMethod for jQuery smartresize