Clear local storage function working