Reorder elements, replace delegate with script.