Fixed module load bugs related to modular javascript