Some JavaScript cleanup.
We're acting on document ready, so there's no need for an extra layer
of (function(){})(); magic.