rebuilding todlist javascript example
making example work independently
extending exception handling
fixing up example
cleaing up code