PM|AD: add requireJS support