jQuery.extend({ handleError: function (a, b, c, e) { alert(e); }, createUploadIframe: function(id, uri) { //create frame var frameId = 'jUploadFrame' + id; var iframeHtml = '