Update rect.js
Update ellipse.js
Update circle.js
Update line.js
Update polyline.js
Update polygon.js
Merge pull request #2 from asturur/master

Fix some tests