detecting if the user has local storage capabilities