Revamp docs JS

* Move JS to the footer
* Dedupe the JS needed for the Twitter tweet and follow buttons
Merge pull request #356 from twbs/docs_js

Revamp docs JS