Kanvas dibuat di bagian bawah halaman
change document.body.appendChild(canvas);
to document.getElementById('headerId').appendChild(canvas);
Indian Gooner
change document.body.appendChild(canvas);
to document.getElementById('headerId').appendChild(canvas);