Adjustments to jQuery file replacement script.