clean up of draw.js