Reordered script loading for IE