Firebase Token Generator for JavaScript