diff --git a/js/js.js b/js/js.js
index 647f2a5..dd386b5 100644
--- a/js/js.js
+++ b/js/js.js
@@ -1,11 +1,8 @@
$(document).ready(function() {
function appendLink(id) {
- console.log(id)
- $(id).closest('div').find('.link').empty();
- $(id).closest('div').find('.link')
- .append("Link to this command: https://amiaopensource.github.io/ffmprovisr/index.html" + id + "");
-
+ $(id).next('div').find('.link').empty();
+ $(id).next('div').find('.link').append("Link to this command: https://amiaopensource.github.io/ffmprovisr/index.html" + id + "");
}
function moveToRecipe(id) {