main.js code from day04 class is cleaned up and working properly.