update generate.js to conform new config files
add auto-selection on publicWelfare or socialSubsidy in file item.js