Javascript framework for loading modules from different scripts automatically