optionally set global.XT in xt.js also

re: https://travis-ci.org/xtuple/xtuple/builds/24583472#L1701