Make localStorage support almost all browsers, including low version IE.