// first trial of addJsDef for index