Add and slightly improve inline comments in dashboard.js