Fixed initialization of requirejs modules.