Updates to main.js

Updates for 1st version with first attack