small modification to jquery