fix device minor, major and class in JS

Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
add rfcomm chat service tests

Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>