Javascript library to help manage two dimensional arrays