Forgot max row/col in js as well. (that should be abstracted...)