Check for localStorage support

A suggested conditional block to address issue #85.