Building a Simple To-Do App with JavaScript: Local Storage and State Management