Check for localStorage support

Proposed fix for Issue #85