Since your panel is outside of any page, it has no
pageinit to initially style widgets.
You have a bit of code that instantiates the panel. I think that you may also have to initialize the widgets inside the panel. (Though I am surprised if .panel() doesn't do this...)
Try changing your code to:
$( "body>[data-role='panel']" ).panel().enhanceWithin();