Put comments on script.js to explain its functionality