update recursion to use innerHTML