finished some code in main.js that was left uncompleted in previous push so that it compiles