Browser code for the just-login-core and just-login-emailer