Fixed script ordering in main layout