Added Modernizr checks for localStorage