Javascript todo thing that uses local storage