update(index): update Firebase example to the new API and load library from CDN