Try:
$('#myId > li').each(
function(){
$(this.firstChild).wrap('');
});
JS Fiddle demo.
With regards to wanting to add the class to the ul:
$('#myId > li').each(
function(){
$(this.firstChild).wrap('');
$(this).find('ul').addClass('myClass');
});
JS Fiddle demo.