Update expose.js

Changed `self` to `global` as global is available in both browser and web worker