add build.js for packing war