Allowing parameters to be passed through the sync method
debugging google request
debugging
debugging
debugging
Working version using the gapi.client script