correcting setTimeout typo