changed main.js order of things still problems with syntax