updated script.js with comments

Commented all lines of code