It's just abbreviations put on birth certificates/official records probably. The J. would have been
John or
James, the M. would have been
Mary or
Margaret, and so forth.
masculine list:
https://www.behindthename.com/pnl/191050/124079feminine list:
https://www.behindthename.com/pnl/191050/124080