Update ajax-cart.js

.size() replaced by .length as .size() is outdated