Update script.js

Added more commentary.