adjusting js module loading order