Ajax and Json + modified cart

Hashtable
replace changes the key and not the value
Changed to put.
Contains checks if a key,value pair exists (or something like that)
changed to containskey
Also formatting and removed comments