Modified dashboard.js and script.js