javascript of matrix cell