Added comments to script.js