refactor ThinDoc and buildHitListJSON()