JS helper calls in views appended with .html_safe() method

When calling a JS helper from a view the JS will be escaped without appending .html_safe() to the end