Remove use innerHTML.
Changed "for each...in" to "for...of".
Changed call "setTimeout" with function expressions.