local storage implements for multi browsers