Build new main.js