Numpy Array Set Javascript Variable Function