removing console logs
tidying main js a lil bit