Using google javascript client api to connect and auth the application