jsoo: Move hook assignments to a function that fstar.js can call
jsoo: Move hook assignments to a function that fstar.js can call

FStarLang/FStar,A-Manning/FStar,A-Manning/FStar,FStarLang/FStar,A-Manning/FStar,FStarLang/FStar