Library fails to load with cookies disabled

When cookies are disabled, browsers (tested in Chrome and Firefox) deactivate localStorage as well.

In this case, the way we check for localStorage availability (`!! localStorage`) throws a `SecurityError` ("The operation is insecure.") so that the whole library fails to load.