Vector math library for javascript