Update polygon.class.js

changed some var names internal to avoid possible overwriting.
maybe intented?