add scripts and modify index for scripts.js