Store tasks in localStorage