put javascript connector code in a Macro.