Properly check for HTML5 storage.

Closes #166.