Fixed module order javascript