Application of Bluetooth-PhoneGap to control