Added local storage to firebase.js.