Works proper with requirejs. Defined modules, required as expected.