js: fix frecency domain calculation for just one link