h bridge question

if you use a seperate power source for the motors than the one coming from the board, should you connect the gnd pins of the l293 differently ? and it is in that case still necessary to protect the board from voltage spikes with a capacitator ?

my example is here, itp.nyu.edu/physcomp/Labs/DCMotorControl
I was just wondering how to drive the motor using an external power supply.

thanks [ electro newbie btw ]