Adding diodes to easy driver stepper motor driver
The diodes are meant for absorbing voltage spikes above M+ and below GND. They have to have low voltage drop to start conducting sooner then the built-in diodes. As the message says, they have to be connected between output and power rails, like this (ignore the depicted buffer):

(source: radio-electronics.com)
Edit: The diodes should be wired like this: