Javascript port of todo-txt-gem by samwho