Removed some redundant anonymous function brackets.
Removed unused break label and objects.
This fixes a dozen logical flaws.

Setting 'relates' to 'fail' by default broke my entire application. Also I
confused it with 'relation' and it would have messed up the combination of
'outside_related_Polygons' and 'related_GeoJSON_outside' below. It still looks
confusing though.