failed try at integrating Apigee AJAX calls