added escape_javascript in views