testing for read/write capabilities before enabling localStorage
Merge pull request #7 from dharFr/localStorageSafariPrivateBrowsing_fix

localStorage is read only when private browsing is ON in Safari (Mac + iOS)