           #Found ok so set to var instead of searching each time
           @useMessageBox = true
           @messageBoxDivEl = document.getElementById(messageBoxId)
+          
         else
           # Unable to find El so fall back to alert message
           @useMessageBox = false

      self.dispMsg self.messagesArr[self.messagesCount]
      self.messagesCount++
      
      # pass obj ref to timeout func and call with timeOut value
      setTimeout ((self) ->
        self.updateMsgBox()
      ), self.timeOut, this

  messagesCount : 0
  useMessageBox : true
  
  #default atrributes
  timeOut : 1000 # timeout value to display message
  emptyDisplayString : "..." # default string to display when no messages in queue

  # constructor taking arguments
  constructor: (args) ->
