BAI: preliminiary transfer to requirejs