Add support for require calls

Resolves #147

Todo:

- [ ] ~~Implement [client-side caching](https://github.com/shama/browser-module-cache)~~ This will be added in a future update