Fixed feature detection for localStorage