VisibilityPolygon in LiveScript and converted to angular visibility factory service