Support for node.js

Still has an ugly global dependency on gl-matrix.