checks to see if storage is supported, fixes issue with Safari in private browsing mode