switch UI to match TodoMVC
cleanup js function names