added mainBrig.js