added javascript for adding to and emptying the cart without reload