using Ed Angel's vec and mat math lib  instead of glMatrix.js