order of javascript preloadading