add support for requirejs