Added future-based clear localStorage method