Emptying links.js.
Clearing results before appending.