Edit in JSFiddle

require(['jquery_1_7_2','jqueryui'], function (JetCSKJQ) {

	var jqCNTLJ = JetCSKJQ; 
	//% console.log('CONTROL+J');

	var pressTimer;

	if ( jqCNTLJ("#pt_envinfo").length) {

		//% Inject CSS;
		cskLoadCSS(getCSSUrl('PSJQUERY_BASE_1_8_17'));
		cskLoadCSS(getCSSUrl('CSK_CONTROL_J_CSS'));

		jqCNTLJ(document).on('mouseup mousemove touchend touchmove',function (){
			//% Clear timeout; 
			clearTimeout(pressTimer);
		});

		jqCNTLJ(document).on('mousedown touchstart',function (){
			//% Set timeout
			pressTimer = window.setTimeout(function() { 

				clearTimeout(pressTimer);

				dialogMsg = "<div title='Troubleshooting Information'>" + "<br/><b>Device Type: </b>" + jqCNTLJ("#pt_envinfo").attr("devicetype") + "<br/>";
				dialogMsg = dialogMsg + "<b>Browser/OS: </b>" + jqCNTLJ("#pt_envinfo").attr("browser") + "<br/>";
				dialogMsg = dialogMsg + "<b>Tools Release: </b>" + jqCNTLJ("#pt_envinfo").attr("toolsrel") + "<br/>";
				dialogMsg = dialogMsg + "<b>User: </b>" + jqCNTLJ("#pt_envinfo").attr("user") + "<br/>";
				dialogMsg = dialogMsg + "<b>Database Name/Type: </b>" + jqCNTLJ("#pt_envinfo").attr("db") + "<br/>"; 
				dialogMsg = dialogMsg + "<b>App Server: </b>" + jqCNTLJ("#pt_envinfo").attr("appserv") + "<br/><br/>"; 
				dialogMsg = dialogMsg + "<b>Page: </b>" + jqCNTLJ("#pt_pageinfo").attr("page") + "<br/>"; 
				dialogMsg = dialogMsg + "<b>Component: </b>" + jqCNTLJ("#pt_pageinfo").attr("component") + "<br/>"; 
				dialogMsg = dialogMsg + "<b>Menu: </b>" + jqCNTLJ("#pt_pageinfo").attr("menu") + "<br/>"; 
				dialogMsg = dialogMsg + "<b>Mode: </b>" + jqCNTLJ("#pt_pageinfo").attr("mode") + "<br/>"; 
				dialogMsg = dialogMsg + "</div>";
				  
				//% console.log('5 seconds!');

				jqCNTLJ(dialogMsg).dialog({
					width: 'auto', // overcomes width:'auto' and maxWidth bug
					maxWidth: 360,
					height: 'auto',				
					fluid: true, //new option
					resizable: true
				});
				  
			},5000); 
		});

	}
	
});