Can u make a JavaScript version?
If JavaScript was used, the code wouldn't be as straightforward to write and read and you'd have to spend time going through the language's syntax for the reader (or assume the reader knows it already), all getting in the way of just teaching the algorithms themselves.
That being said C/C++, Python and Go are more fun for implementing pure algorithms/data structures as the language constructs are more designed around that.