You could try to convert it from c++. There is an example of that on the Sparkfun website.
I saw the C++ example but don't really feel like translating the full lib and wouldn't even know where to start. Someone must have used the boards in JS before right?
Maybe! I have had a lot of trouble finding support for the sparkfun boards.