2d linear equation representation for browser and node