Checking for localStorage support and making sure we're not in Node before attempting to use it