Update app.js

change to firebase