Fix for mediator and requirejs config