Add `freeGlobal.self` checks to spotlight.js and qunit-extras to support browserified code running in a web worker.