edit draw.js