a simple example of localStorage