Add script for 'Rvis_JS_matrix' function
Calculate the expected number of matrix values
Generate a matrix block from the provided dims/values
Generate and return a formatted matrix declaration string