C-S procedural question generation

mostly copied from M-I .js file