javascript – Apache Cordova $ is not defined any thoughts?

Iam trying to connect with my apache cordova weather app api to openweather.org and get some info. I didnt find any mistake in my code so aim asking for help… I keep recieving this error. Iam still begginer, so iam not sure what exactly to do with this. If anyone know, please let me know. I would be very grateful ­čÖé
BTW: Sorry for my poor english and programing skills ( still begginer ­čÖé )
(function () {
“use strict”;

document.addEventListener('deviceready', onDeviceReady.bind(this), false);


function onDeviceReady() {
    // Obsluha ud├ílost├ş pozastaven├ş a obnoven├ş Cordova
    
    document.addEventListener( 'pause', onPause.bind( this ), false );
    document.addEventListener('resume', onResume.bind(this), false);
    var lnk = document.getElementById("click");
    lnk.addEventListener('click', getWeatherLocation.bind(this), false);
    // TODO: Cordova je na─Źten├í. Tady m┼»┼żete ud─Ťlat v┼íechny inicializace, kter├ę Cordova vy┼żaduje.
   


    function getWeatherLocation() {

        navigator.geolocation.getCurrentPosition
            (onWeatherSuccess, onWeatherError, { enableHighAccuracy: true });
    }
    var onWeatherSuccess = function (position) {
        
        var Latitude = position.coords.latitude;
        var Longitude = position.coords.longitude;

        getWeather(Latitude, Longitude);
    }

    // Get weather by using coordinates

    function getWeather(latitude, longitude) {

        // Get a free key at http://openweathermap.org/. Replace the "Your_Key_Here" string with that key.
        var OpenWeatherAppKey ="9974e9166727dfccf7706a5a3de4671b";

        var queryString =
            'http://api.openweathermap.org/data/2.5/weather?lat='
            + latitude + '&lon=' + longitude + '&appid=' + OpenWeatherAppKey + '&units=metric';

        $.getJSON(queryString, function (results) {

            if (results.weather.length) {

                $.getJSON(queryString, function (results) {

                    if (results.weather.length) {

                        $('#description').text(results.name);
                        $('#temp').text(results.main.temp);
                        $('#wind').text(results.wind.speed);
                        $('#humidity').text(results.main.humidity);
                        $('#visibility').text(results.weather(0).main);

                        var sunriseDate = new Date(results.sys.sunrise);
                        $('#sunrise').text(sunriseDate.toLocaleTimeString());

                        var sunsetDate = new Date(results.sys.sunrise);
                        $('#sunset').text(sunsetDate.toLocaleTimeString());
                    }

                });
            }
        }).fail(function () {
           alert("error getting location");
        });
    }

    // Error callback

    function onWeatherError(error) {
        alert('code: ' + error.code + 'n' +
            'message: ' + error.message + 'n');
    }

}


function onPause() {
    
    // TODO: Tato aplikace je pozastaven├í. Tady m┼»┼żete ulo┼żit stav aplikace.
};

function onResume() {
    // TODO: Tato aplikace je znovu aktivovan├í. Tady m┼»┼żete obnovit stav aplikace.
    
};

})();

error