[core][fr] fix bug in suggestions for JS