updated for new requirejs def