WMGM NBC 40 came on the air in '65 as WCMC-TV. It was in B&W, except for network programming. It was given an affiliation with NBC because at THAT time, Ch3 WRCV had a real hard time making the trip to the shore from Lafayette Hills. So WCMC got the NBC knod because it was just a low power signal.
Remember...the station is licensed to Wildwood, Cape May County...deep in the state. Here's a shot of the studios before the TV sign-on, when it it was just WCMC AM/FM, during the March Storm of '62. It's from Tom McNally's site.
http://mcnally.cc/gallery/wcmc62.jpg