Cleaner AJAX calls in dashboard.js