viewerCanvas.js