requirejs per rest app