add js comparator test