Playing with Mozilla Rhino - evaluating predicates exposing an objects methods as global level functions.