Update script.js

Add comments