User Authentication with JavaScript & Firebase