diff --git a/trypandoc/index.html b/trypandoc/index.html
index 2b42ab179..792f522eb 100644
--- a/trypandoc/index.html
+++ b/trypandoc/index.html
@@ -9,9 +9,9 @@
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
-  <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
-  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
-  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
+  <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
+  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
+  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
   <script>
 "use strict";
 (function($) { // http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values
@@ -44,14 +44,17 @@ $(document).ready(function() {
     $("#from").val(from);
     var to = $.QueryString["to"] || "html";
     $("#to").val(to);
-    var standalone = ($.QueryString["standalone"] === "1") ? "1" : "0"
+    var standalone = ($.QueryString["standalone"] === "1") ? "1" : "0";
     $("#standalone").prop('checked', (standalone === "1"));
     if (text && text != "") {
        $.getJSON("/cgi-bin/trypandoc", { from: from, to: to, text: text, standalone: standalone },
          function(res) {
           $("#results").text(res.html);
           $("#version").text(res.version);
-          $("#command").text("pandoc --from " + from + " --to " + to);
+          var commandString = "pandoc"
+            + ((standalone === "1") ? " --standalone" : "")
+            + " --from " + from + " --to " + to;
+          $("#command").text(commandString);
          });
     };
     $("#convert").click(newpage);