Mocking for requirejs