Create localStorage

First attempt at using localStorage in JavaScript.

Create a function to test if localStorage is available, check if the item exists in local storage already, and create a timestamp item to delete the data in localStorage if it is too old.