Added debug switch for clearing local storage on page load