Added a jssnippet type. This renders  results of javascript but also displays js code snippet.

Test for js snippets

Pruned comments.