save items to localStorage with help of the localstorage plugin