Goal: To pass a model data to a javascript function.
Problem: I get an error when trying to pass the model to the JS function call.<