diff --git a/lib/assets/JavaScript.js b/lib/assets/JavaScript.js
index <HASH>..<HASH> 100644
--- a/lib/assets/JavaScript.js
+++ b/lib/assets/JavaScript.js
@@ -374,6 +374,7 @@ class JavaScript extends Text {
     estraverse.traverse(parseTree, {
       enter: (node, parent) => {
         if (parent) {
+          // This is a bit inefficient, but esquery requires the first parent to be the first element:
           stack.unshift(parent);
         }
         for (const { parsedSelector, handler, Relation } of parsedSelectors) {
Note why we shift/unshift rather than push/pop onto the stack