We all make mistakes in the web development, some are common, some are
uncommon, some are even stupid, but we should not be shame to share
them. Write them down, and hopefully we don't make the same mistakes
again.
This seems to be very easy one, but never do x.innerHTML += y, because it will disable all Javascript event predefined. Use document.body.appendChild(Elm) instead.