Revamp docs JS

* Move JS to the footer
* Dedupe the JS needed for the Twitter tweet and follow buttons

Both of these is how Bootstrap does it. Sadly there's no benefit on page file size, but it reduces the JS for each button at least.