improve jq-common module, jq-menu, and jq-tree