- Add favorite items to HTML5 localstorage so that they persist on browser refresh or close.