minor bugs
added SSL requirement to fallback implementation of localStorage