fix order of script tags