Finished off the local storage - added destroy, set and clear methods.  Converted index to use new object