Remove dependency on Modernizr

The test for localstorage is trivial. Why not add a few lines of code instead of requiring people to use Modernizr?