'A defibrillator for the brain' tested in N.J. helps control epilepsy