adding code comments to scripts.js