Was checked answer (doggy)

Iteration for (var prop in obj) only shows the last record, which is
incorrect. It should show also previous records. This solution is doggy.