CAD system through html5 canvas