diff --git a/libs/plotly.js-1.52.2.zip b/libs/plotly.js-1.52.2.zip
index f7588bf63dd9e685fec3180fe3336829f34e566b..67144b58fc32fb98e3ad65aa6dc77ad27e1fd8b4 100644
Binary files a/libs/plotly.js-1.52.2.zip and b/libs/plotly.js-1.52.2.zip differ
diff --git a/misc/merge_js.sh b/misc/merge_js.sh
index ccd361a87ea2363a4af65436f149a6364cf5187b..3265dd16dddb3ecd5a2f0a576f621ede96658b19 100755
--- a/misc/merge_js.sh
+++ b/misc/merge_js.sh
@@ -51,7 +51,7 @@ _create_jsheader () {
       </xsl:attribute>
     </xsl:element>
     "
-        [[ -f "public/index.html" ]] && sed -i "s|^\(.*JS_INCLUDE.*\)$|    <script src=\"${DIST_BUNDLE}\"><\/script>\n\1|g" public/index.html ;
+        [ -f "public/index.html" ] && sed -i "s|^\(.*JS_INCLUDE.*\)$|    <script src=\"${DIST_BUNDLE}\"><\/script>\n\1|g" public/index.html ;
     else
         _ALL_SOURCES=$@
         echo "${_ALL_SOURCES}"
@@ -66,7 +66,7 @@ _create_jsheader () {
       </xsl:attribute>
     </xsl:element>
     "
-            sed -i "s|^\(.*JS_INCLUDE.*\)$|    <script src=\"${_SOURCE}\"><\/script>\n\1|g" public/index.html ;
+            [ -f "public/index.html" ] && sed -i "s|^\(.*JS_INCLUDE.*\)$|    <script src=\"${_SOURCE}\"><\/script>\n\1|g" public/index.html ;
         done
     fi
 
diff --git a/test/core/js/modules/form_panel.js.js b/test/core/js/modules/form_panel.js.js
index 3a26aee2d8a6ca6cf0021d7c35ddae71c5560145..4ec4d540239500fe054203226ed9bdeb955e25a0 100644
--- a/test/core/js/modules/form_panel.js.js
+++ b/test/core/js/modules/form_panel.js.js
@@ -90,7 +90,7 @@ QUnit.test("autofocus_without_form", function(assert) {
         return container[0];
     };
     // This should always work
-    cb_without_autofocus = form_panel.create_show_form_callback(
+    const cb_without_autofocus = form_panel.create_show_form_callback(
         id,
         title,
         undefined,
@@ -103,7 +103,7 @@ QUnit.test("autofocus_without_form", function(assert) {
     assert.ok(document.querySelector(`#${id}`), "Callback was called without autofocus.");
     $(`#${id}`).remove();
 
-    cb_with_autofocus = form_panel.create_show_form_callback(
+    const cb_with_autofocus = form_panel.create_show_form_callback(
         id,
         title,
         undefined,