Removed unused javascript.
Fixed showing correct node link for items that have no primary link (search results).