Update script.js

Added some comments