US retail giant JC Penney saw its losses more than halve during the third quarter after lower expenses offset a slight fall in sales.