JC Penney ekes out small profit in 4th quarter