Fix build.js and reminify files