At this point, if you open the index.html page and take a look at the console, you'll see the TodoIt message being logged, indicating that our code works as expected.
The final step in our refactoring is to adapt index.html in order to call the methods of our instance of TodoIt, which we have called todoIt.
Adapt the file as follows:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>TodoIt</title> </head> <body id="todoIt" style="text-align: center"> <h1>TodoIt</h1> <h2>Add new items</h2> <p> What needs to be done? <input type="text" id="todoInput" title="What should be added to
the todo list?" onkeyup="if(EventUtils.isEnter(event))...