Switched AJAX calls to using admin-ajax.php