Birth certificate of James would be a more likely source of a mother's maiden name in England. Unfortunately I do not see any 1839-1840 James born in freebmd.
Also I cannot locate either family in earlier census data.