added input-kg to #generate button