finishing ajax implementation of cart