finished dashboard_final.js