added NOBLE library; peripheral.js modified