draw.js updated