Had stumbled upon this in the mean time. Seems to include a three.js visualizer and to use a serial interface. Haven't looked thur it. Just passing along the info. https://github.com/ZiCog/madgwick.js
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.
Had stumbled upon this in the mean time. Seems to include a three.js visualizer and to use a serial interface. Haven't looked thur it. Just passing along the info. https://github.com/ZiCog/madgwick.js