Comments for script.js

I've tried to add some comments for each step in the script.js - let me know if there's anything you think I'm overlooking that could use a better explanation.