since .live will be deprecated you can also
$(document).on('pageinit', '#summaryPage', function(){
//append head element and custom script
});
It could also be that you are loading your scripts way too late, naturally if I were you I would do it immediately as soon as the document and/or device is ready, and then when the page inits check if the element exists and if not, trigger create. There are also events you could listen to in jquery mobile API e.g. pagebeforecreate
Or better yet still put the code in a global function without a name:
function(){
//append your script here
}
you can read up the documentation on jquery.com in the API