Create firebasepage.js

chat app, still need to add the feature to prevent duplicate IDs