JavaScript ShopCart: Using Ajax, JSON and LocalStorage