Update polyline.class.js

mirrored changes for polylines