Generalize jQuery matching for non Spark-core API docs