Correct script load order