download pallet flag js validation