Added example AJAX code to reference-code