Set up for AJAX call