Ensure compiled HTML respects order of scripts