Added Lo-dash and changed a for loop to a .map