script for storing json objects in the localstorage, if available. has a timeout feature that will ignore expired data.