I have two elements with typing effect using javascript, every element has its own function to make the typing effect, the problem is the two texts get displayed incompletely, b