Added ajax call to exchange auth code for access token