dynamically updating a matrix on the javascript side based on data generated on the julia side