Changed to use new btle.js interface