diff --git a/ifcbdb/templates/dashboard/bin.html b/ifcbdb/templates/dashboard/bin.html
index 5d993fe0..f859acd9 100644
--- a/ifcbdb/templates/dashboard/bin.html
+++ b/ifcbdb/templates/dashboard/bin.html
@@ -1421,7 +1421,7 @@
Share This Page
})
var title = "";
- {% if dataset %}title += " » {{ dataset.title }}";{% endif %}
+ {% if dataset %}title += " » {{ dataset.title|escapejs }}";{% endif %}
{% if instrument %}title += " » IFCB{{ instrument.number }}";{% endif %}
{% if cruise %}title += " » {{ cruise }}"{% endif %}
{% if sample_type %}title += " » {{ sample_type }}"{% endif %}