Created predicate to search for JS scripts