var canvas = document.getElementById('canvas');canvas.setAttribute('width', window.innerWidth);canvas.setAttribute('height', window.innerHeight);