[js] Moving lazyload back outside the main require loop