make requiring work with browsers