If you want to minify the JS within views
Include this

and then wrap your scipt

@HTML.JsMinify()