use chainjs to impelement build script