Fixed #1959 by postponing ALL script evaluations till the html insertion is done...