Allow using the module in a setting with globals, such as browsers