Umair,
Indeed, it should be AJAX.cache; but I think, to correct it fully, it should be !== instead of ===