started thinking about how to split up script.js by responsibility