Update canvas2d.js