Execute custom shapes closure

This fix makes `tests/custom-circles.html` work properly.