Changed script loading order