Unified script loading and fixed path