Copy-pasted in needed vec2 methods from glmatrix, this will save some bytes. Using browserify auto-detect globals. Changed name of GLMAT_ARRAY_TYPE to P2_ARRAY_TYPE.