function draw() { var canvas = document.getElementById("canvas");