update "todo" demo page
fix "todo.js " indentation - remove global var
update API Documentation