Updated to use updated btle.js API