Added disqus and factored out some javascript code