`<div id="terminal"></div>` wasn't used, instead, a new one was created and used since getElementById('#terminal') returned null.