Updated Native Ajax Api Example