   
   # Method to display message
   dispMsg: (val) =>
+    
     if @useMessageBox == true
       @messageBoxDivEl.innerHTML = val
-      
+ 
+ 
   # Timeout method to work through queue
   updateMsgBox: =>
     self = @

      
      return
  
  # cleardown obj, reset count and queue  
  clear: =>
    @messagesCount = 0
    @messagesArr = []
  
  # Add a message to the queue  
  push: ( message ) =>

    @clear()
    
    if args
    
      @setAttributes args
      #show initial message
      @dispMsg @emptyDisplayString
      
    else
      
      throw "Missing arguments. UiMessageQueue requires arguments to run."
    
  # method to set attributes from args passed  
  setAttributes: (attrs)->
  
      # Set optional div id
      if attrs.message_box_div_id
      
        messageBoxId = attrs.message_box_div_id        
      
      # Test and assign timeout
      if attrs.timeout_val
        #test if timeout_val is numeric
        if isFinite attrs.timeout_val
        
          @timeOut = attrs.timeout_val
          
        else
          
          throw "Invalid argument: timeout_val is not numeric"
          
      if attrs.empty_display_str
      
        @emptyDisplayString = attrs.empty_display_str
        
      # Try and find the El by ID
