[sonar] javascript cleanup

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>