fun with linalg and js