Misc code cleanup
changed localstorage.clear to removeitem