setting up AJAX endpoint for lab