A CodePen by Matthew King. swap elements