Moved the Disqus handlers to documentation.js

I'm not sure why the javascript for disqus was added directly to the HTML elements—I moved it into the javascript file.  If there was a reason for this, let me know!

The ``if (typeof DISQUS === "object") `` is there because the disqus script is lazy-loaded, and is not guaranteed to be there on page-ready.