fixed a bug for the ad hider and made the scripts load before the images