Added HtmlHelper to add script to an MVC page for a model
Avoiding creating a global variable in HtmlHelper generated script