luci-base: cbi.js: utilize node.closest() if available