update C header constants in JS