Fix issue with main.js building