<style>
* {padding: 0; margin: 0;}
</style>
var viewPort = {
width: window.innerWidth,
height: window.window.innerHeight
};
var canvas = document.createElement('canvas');
canvas.width = viewPort.width;
canvas.height = viewPort.height;
document.body.appendChild(canvas);