Cleaned up jQuery for border between selected adjacent and origin elements