JS: fix defdefs