added jquery to purchases to allow users to set purchases to nil if they wish to undo them.