Update canvasSample.js