minor changes to jquery