Also the 'puck.js' web bluetooth library that handles two-way comms is here: https://github.com/espruino/espruino.github.io/blob/master/js/puck.js
It's pretty easy to use: http://www.espruino.com/Puck.js+Web+Bluetooth
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Also the 'puck.js' web bluetooth library that handles two-way comms is here: https://github.com/espruino/espruino.github.io/blob/master/js/puck.js
It's pretty easy to use: http://www.espruino.com/Puck.js+Web+Bluetooth