Update main.js

added objects and error messages and class to completed items