Make module work in browser workers.