draw.js object structure update