draw.js update