With JavaScript moved from index.html into new main.js file