added commentary in script.js in what i need to do next. First try to understand the logic, then build it.