Update script.js

Properly commented code.