debug js; debug duplicaterecords