J login

fix and simplify login by using base64 form Google Closure library