UBC-007 and UBC-008 comparison Javascript queries