Document `globals` option

See #1222