BFFs solutions

BFFs was solved using JavaScript by 3 contestants. Solution sizes: average 4353 bytes (shortest: 3168; longest: 5539).