// MySQL API
var apis = 'api.php'; 

// set image directori
var imageDir = 'image';

// Replace with: your firebase account
var config = {
    apiKey: "AIzaSyDfKpgAUCOja3z-tc0yHOqzOCEGo0seJAQ",
    databaseURL: "https://chatws-40480.firebaseio.com"
};
firebase.initializeApp(config);

// create firebase child
var dbRef = firebase.database().ref(),
	messageRef = dbRef.child('message'),
	userRef = dbRef.child('user');

@@ -1,8 +1,69 @@
+// Domain%0Aconst domain = %22http://localhost/Chat-Realtime/%22;%0A%0A
 // MySQL
@@ -67,19 +67,21 @@
 SQL API%0A
-var
+const
  apis = 
@@ -90,17 +90,16 @@
 pi.php';
- 
 %0A%0A// set
@@ -115,19 +115,21 @@
 rectori%0A
-var
+const
  imageDi
@@ -181,19 +181,21 @@
 account%0A
-var
+const
  config 
@@ -373,11 +373,13 @@
 ild%0A
-var
+const
  dbR
@@ -408,19 +408,25 @@
 ().ref()
-,%0A%09
+;%0A%0Aconst 
 messageR
@@ -456,11 +456,16 @@
 ge')
-,%0A%09
+;%0Aconst 
 user

Update config.js