Rearrange script loadings