use continuation-passing style instead of return statements
remove duplicates and sort dino list
added select all output button and indent json and plain text output