contacts - formatContactsData - moving the javascript to an external file