add localStorage code snippets.