BROKEN CODE. Debugging. Fixing issues related to appending elements to the end of a parent element.