RequireJS support. Refactor NG structure.