clean up dashboard.js