These should be on separate lines. But normally we would build from top down, appending as we build, and then attaching to the DOM at the very end.