single page todo app with javascript