jsgui: Don't link to Brooklyn nodes that are terminated

Minor improvement to the jsgui