feat(js_plugin): query AST nodes by their kind (#11415)