Update polygon.class.js

Now polygon Top and Left can be setted in the contructor call or calculated by the points.