Fix a few bugs:

* Make sure the textObject count doesn't keep increasing.
* Start using async.
* Don't run the JavaScript if repo isn't set (on pages other than
  repo/show)