> ...BTW,..what's the REAL romex doing in there,..is it a switch loop??

I hope not; it loks like it is in parallel with the feed and fixture. I'd guess the Romex is the feed, and the extension cord was added to power another fixture later on.