Adding documentation for endpoints added in node.js

Looked at the highlight.js documentaton - this should have proper JavaScript highlighting. Tried to keep it to simple one-liners.

Will