Add this line in the head section:
<script src='https://cdn.firebase.com/v0/firebase.js'></script>
Firebase references are created using a URL that specifies which data you want to access.
A core concept of Firebase is that every piece of data has its own URL. You can use this URL to access your data in several ways:
  • From any Firebase client library
  • From our REST API
  • By entering it in any browser (Try clicking the link above).

Tutorial:

https://www.firebase.com/tutorial/#tutorial/basic/0