JC Penney's turnaround strategy appears to be paying off after the US department store retailer revealed a lower second-quarter net loss and higher sales.