Removing all globals from baseHelpers.ts. All 64JS+36TS tests pass!