use container.appendChild instead of innerHTML +=, fixes #10