js for reverse_lookup