added comments to build.js and made easier to use