Refactored scoreWebIdMatch. I tested getRandomNode() and it seems to be working fine.