added cookies.js and modified index.html