run script after the document loads completelly