Added checking in the example JS to see if localStorage is available