Added Debug code, and added localStorage.clear on load to remove any chance that settings are still being cached in local storage