Moved the stash and unstash functions to inside the main plugin function so that they get access to the options object and don't run if there's no sessionStorage.