title: Drawing a rectangle using click, mouse move, and click
body: <p>I'm trying to draw a rectangle by a user click, mouse move, and click. There are two problems with my code.</p>
  
  <p>Firstly, after one rectangle is drawn it is automatically assumed that another one will be drawn. Secondly, the starting point on the second rectangle is the last click that created the first rectangle. </p>
  
  <p><a href="http://jsbin.com/uqonuw/3/edit" rel="noreferrer">http://jsbin.com/uqonuw/3/edit</a></p>