Develop dashboard and refactor script.js to match dashboard