"this.dbname" is not defined inside openSuccess; close over a preformatted message instead