JS obj based query engine