Added first part of function to display local storage contents