Fixed a call of javascript_show_if_exists

When calling this function from <%= %>, the .html_safe method has to be added, otherwise the JS will be escaped