Easier Firebase authentication with jQuery Deferred