pretty functional drawing app in tools.js + draw.html
fixed some bugs with drawing