A small predicate library for javascript