moved minmax node scripts here, to be ported to web