You can click the DC source to change it's polarity.
I think your question is not why it change direction but why flow direction is opposite to the electric field.
Because [b]the moving black points represent the electrons moving with average drift velocity[/b].
It represent electron flow (not the current flow). It was written a few lines below the applet.