changed draw.js