'use strict';

jQuery(document).ready(function () {
  var submitURL = $('#btn-inscript').attr('href');

  $('#agreed').change(function () {
    if ($(this).is(':checked')) {
      $('#btn-inscript').attr('href', submitURL + '&mpec_agree=true');
      console.log('check');
    } else {
      $('#btn-inscript').attr('href', submitURL);
      console.log('uncheck');
    }
  });
});

@@ -12,30 +12,9 @@
 ';%0A%0A
-jQuery(document).ready
+$
 (fun
@@ -74,16 +74,42 @@
 'href');
+%0A  console.log(submitURL);
 %0A%0A  $('#

Add console logs