Implements jQuery-like string-based selectors on server-side.