todo.txt parser written in pure JavaScript