Fixed referenceError with chatURL