Added most of the coding to script.js, missing console.log