added comments to scripts.js