fix script loading order problem on order pages