JS: fix user nick extraction bug