Update BLE.java

I highly recommend you to add another two functions - register and unregister.
'unregister' is called in the event '(window).unload'.
It is helpful to be used in Cordova Embedded WebView.