Just a small experiment. Check examples. For a more complex example check app.js inside todomvc, it's a 90% complete implementation of it.