Update graphics2d.js