minor: else if condition in js file

Change-Id: I074e9799cf13e09d74aba7f19652e58ed96ae1f1
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
refactor socket connection stuff

Change-Id: I4e9e00ddf5a43027abb74020072e14f874b1741b
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
replace bluetooth example

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