Resizes title when document is ready