Added some comments to script.js