i only glanced at your github repo to see that there is more .js files than suggested in your question.
i had 2 separate .js files. both being included on the same html page that were both configuring and initializing the default app when it only needed to be done once for that page i believe. what worked for me was to comment out the second "initializeApp()" and i no longer got that error. try to look for the below in your .js and comment out or delete one of the initializations.
var config = {
apiKey: "my api key",
authDomain: "something.firebaseapp.com",
databaseURL: "https://somesite.firebaseio.com",
projectId: "myProjectId",
storageBucket: "somesite.appspot.com",
messagingSenderId: "someIntegers"
};
//firebase.initializeApp(config);