QuaternionJS
a simple API for creating an manipulating quaternions which are useful in 3D graphics involving rotations.
to use in the browser, just include <script src="quaternion.js"></script>
for use in node, just run npm install quaternionjs
Here's a small demo
var quaternion = var q = // rotate all the points in `points` along the x, y, and z axis return points
checkout example/index.html
for an demo or have a gander at the source code.