init class PredicateSelector in js file