Here is a link to a JsFiddle I worked on to try and get your code working http://jsfiddle.net/rvqRX/
I went thru line by line and commented each one out one at a time and found that the only line I had to comment out for it to behave correctly was this
$('#CreditCards ul').listview('refresh');
Not sure why... does it make any sense to you?