Added script for calling an API through jQuery AJAX