Added a callback to the createDOM function, removed unnecessary console.log()