re-add removed `global.js` file

Inadvertently removed in 72976516fc335ace99a9a2b5ff8f45d2803c7acf.