Fixed setCRPostVars and now loads js file for add_ir