Output and structure correct. Adding comments in script.js to explain all variables.