Is the second `document` missing a `goog.global`?