Set of JavaScript snippets: algorithms, data structures, graph searches etc, created for demonstration purposes.