Hi Angie
Scottish naming pattern is not a precise science but can be a guide on possible g/parents' names. From the children showing on IGI for James and wife Ann, first born son in 1842 looks to have been called Andrew (submitted entry). Second son shows as Hugh Dalgliesh which I assume may be the names of Ann's father.
There is a birth showing which might be a possibility for James:
JAMES BROWN Born on 17 AUG 1809/ Christening 03 SEP 1809 Old Cumnock
Parents:ANDREW BROWN and JANET BOYDE
Monica
