Selector engine for JavaScript syntax trees