mongo-like query on JS collection