making linalg an npm module