$(function() {

    $("a.officelaunchlink").click(function() {
	var ua = window.navigator.userAgent;
	window.console.log("Checking UA %s", ua);
	if (~ua.indexOf('MSIE ') || ~ua.indexOf('Trident/')) {
	    // http://stackoverflow.com/questions/19999388/jquery-check-if-user-is-using-ie
	    window.console.log("Detected IE");
	    window.console.log("ActiveXObject is %s", window.ActiveXObject);	    
	    ed = new ActiveXObject('SharePoint.OpenDocuments.4');
	    window.console.log("ActiveXObject: %s", ed);		
	    if (ed) {
		ed.EditDocument(this.href);
	    }
	} else {
	    alert("This feature requires Windows, Internet Explorer, and Microsoft Office.")
	}
	return false;
    });

});

@@ -98,51 +98,8 @@
 nt;%0A
-%09window.console.log(%22Checking UA %25s%22, ua);%0A
 %09if 
@@ -239,123 +239,8 @@
 -ie%0A
-%09    window.console.log(%22Detected IE%22);%0A%09    window.console.log(%22ActiveXObject is %25s%22, window.ActiveXObject);%09    %0A
 %09   
@@ -298,60 +298,8 @@
 ');%0A
-%09    window.console.log(%22ActiveXObject: %25s%22, ed);%09%09%0A
 %09   

Remove left over console logging