display(message, output) {
         
        var infobarElement = document.getElementById('infobar') || null;
        if (!document.getElementById('infobar')) {
            infobarElement = document.createElement('SECTION');
            infobarElement.id = 'infobar';
            
            // If the ids have been respected and the detector id is identified
            var detectorElement = document.getElementById('detector') || null;
            if (detectorElement) {
                // place it before the detector section
                detectorElement.parentNode.insertBefore(infobarElement, document.getElementById('detector'));
            } else {
                // otherwise place it in the beginning of the body
                document.body.prepend(infobarElement);
            }
        }

        // If the output area where message needs to be placed does not exist then create it
        if (!document.getElementById(output)) {

            // The message bar is an unordered list and list items can be accumulated in it
            var messageElement = document.getElementById('message') || null;
            if (!messageElement) {
                messageElement = document.createElement('UL');
                messageElement.id = 'message';
                infobarElement.appendChild(messageElement);
            } else {
                var separator = document.createElement('LI');
                separator.innerHTML = "|";
                messageElement.appendChild(separator);            
            }
            var newStatus = document.createElement('LI');
            newStatus.id = output;
            messageElement.appendChild(newStatus);
        }

        // add message to the area
        var outputElement = document.getElementById(output) || null;
        outputElement.innerHTML = message;

    }
/* 
     * Method that displays messages to the status area in the UI
     *
     * @message: the message to be displayed
     * @output: the HTML id where it should be displayed
     */
Method that displays messages to the status area in the UI
@message: the message to be displayed
@output: the HTML id where it should be displayed
Method that displays messages to the status area in the UI @message : the message to be displayed @output : the HTML id where it should be displayed
display(message, output) {
        var infobarElement = document.getElementById('infobar') || null;
        if (!document.getElementById('infobar')) {
            infobarElement = document.createElement('SECTION');
            infobarElement.id = 'infobar';
            var detectorElement = document.getElementById('detector') || null;
            if (detectorElement) {
                detectorElement.parentNode.insertBefore(infobarElement, document.getElementById('detector'));
            } else {
                document.body.prepend(infobarElement);
            }
        }
        if (!document.getElementById(output)) {
            var messageElement = document.getElementById('message') || null;
            if (!messageElement) {
                messageElement = document.createElement('UL');
                messageElement.id = 'message';
                infobarElement.appendChild(messageElement);
            } else {
                var separator = document.createElement('LI');
                separator.innerHTML = "|";
                messageElement.appendChild(separator);            
            }
            var newStatus = document.createElement('LI');
            newStatus.id = output;
            messageElement.appendChild(newStatus);
        }
        var outputElement = document.getElementById(output) || null;
        outputElement.innerHTML = message;
    }
display ( message , output ) { var infobarElement = document . getElementById ( 'infobar' ) || null ; if ( ! document . getElementById ( 'infobar' ) ) { infobarElement = document . createElement ( 'SECTION' ) ; infobarElement . id = 'infobar' ; var detectorElement = document . getElementById ( 'detector' ) || null ; if ( detectorElement ) { detectorElement . parentNode . insertBefore ( infobarElement , document . getElementById ( 'detector' ) ) ; } else { document . body . prepend ( infobarElement ) ; } } if ( ! document . getElementById ( output ) ) { var messageElement = document . getElementById ( 'message' ) || null ; if ( ! messageElement ) { messageElement = document . createElement ( 'UL' ) ; messageElement . id = 'message' ; infobarElement . appendChild ( messageElement ) ; } else { var separator = document . createElement ( 'LI' ) ; separator . innerHTML = "|" ; messageElement . appendChild ( separator ) ; } var newStatus = document . createElement ( 'LI' ) ; newStatus . id = output ; messageElement . appendChild ( newStatus ) ; } var outputElement = document . getElementById ( output ) || null ; outputElement . innerHTML = message ; }
Method that displays messages to the status area in the UI
 @message: the message to be displayed
 @output: the HTML id where it should be displayed
Method that displays messages to the status area in the UI @message : the message to be displayed @output : the HTML id where it should be displayed
// If the ids have been respected and the detector id is identified // place it before the detector section // otherwise place it in the beginning of the body // If the output area where message needs to be placed does not exist then create it // The message bar is an unordered list and list items can be accumulated in it // add message to the area