Move this to within the `if ($body.is('.edit, .new, .translate')) { // Document form page`

Those are the only pages that will need it.