Which sentence shows the CORRECT use of commas?

A.
When I went to the mall, Jane was working in the food court.
B.
When I went, to the mall, Jane was working in the food court.
C.
When I went to the mall Jane was working, in the food court.
D.
When, I went to the mall, Jane was working, in the food court.

A.

When I went to the mall, Jane was working in the food court.