[core][js] gc_options and gc_rules as objects