Load script in the right order