require(['jquery'], function (j) {
    "use strict";
    j(document).ready(function () {

        /**
         * Update url params
         * @param uri
         * @param key
         * @param value
         * @returns {string}
         */
        function updateUrlParameter(uri, key, value) {
            var re = new RegExp('([?&])' + key + '=.*?(&|$)', 'i'),
                separator = uri.indexOf('?') !== -1 ? '&' : '?';

            if (uri.match(re)) {
                uri = uri.replace(re, '$1' + key + '=' + value + '$2');
            } else {
                uri = uri + separator + key + '=' + value;
            }

            return uri;
        }

        /**
         * Change urls
         * @param value
         */
        function changeUrls(value) {
            var elmToChange =
                [
                    '#connector_developer_settings_sync_settings_reset_orders',
                    '#connector_developer_settings_sync_settings_reset_reviews',
                    '#connector_developer_settings_sync_settings_reset_wishlists',
                    '#connector_developer_settings_sync_settings_reset_catalog'
                ];

            j.each(elmToChange, function (k, v) {
                var str = j(v).attr('onclick'),
                    updatedUrl = updateUrlParameter(str, value, encodeURIComponent(j('#' + value).val()));

                j(v).attr('onclick', updatedUrl);
            });
        }

        /**
         * Observe change on given element
         * @param value
         */
        function observeChange(value) {
            j('#' + value).change(function () {
                changeUrls(value);
            });
        }

        function start() {
            var elmToObserve = ['from', 'to'];

            j.each(elmToObserve, function (key, value) {
                observeChange(value);
            });
        }

        start();
    });
});

@@ -23,17 +23,17 @@
 nction (
-j
+$
 ) %7B%0A    
@@ -50,17 +50,17 @@
 t%22;%0A    
-j
+$
 (documen
@@ -1161,33 +1161,33 @@
 %5D;%0A%0A            
-j
+$
 .each(elmToChang
@@ -1233,17 +1233,17 @@
 r str = 
-j
+$
 (v).attr
@@ -1338,17 +1338,17 @@
 mponent(
-j
+$
 ('#' + v
@@ -1379,17 +1379,17 @@
         
-j
+$
 (v).attr
@@ -1583,17 +1583,17 @@
         
-j
+$
 ('#' + v
@@ -1768,17 +1768,17 @@
         
-j
+$
 .each(el

use standard $ variable to refer to jQuery