[#1377] Add this.options and this.el javascript example
[#1377] Add a snippet API javascript example

This example could be improved by passing only the package id to the
snippet, the snippet can then use h.get_action('package_show')(...) to
get the full package dict.