compatibility fix for requirejs (AMD module loader)

if something is wrong, look in ADB what files are tried to be loaded.
change requirejs config accordingly.