Script Loading Fix

Fixed the script loading to ensure order is maintained.