Added comments to the script.js