Cant display images in electron app


I’m having problem with displaying images in my electron app. I would like to display all images in upload folder. Upload folder is in static public folder. Upload is made with Multer.

    <meta charset="UTF-8">

        window.$ = window.jQuery = require('./js/jquery-2.1.4.min.js');


    <div class="navigacija">
        <li><a href="prva.html">DOMOV</a></li>
        <li><a href="galerija.html">GALERIJA</a></li>
        <li><a href="http://localhost:3000">NALOŽI SLIKO</a></li>

        var folder = "uploads/";

            url : folder,
            success: function (data) {
                $(data).find("a").attr("href", function (i, val) {
                    if( val.match(/\.(jpe?g|png|gif)$/) ) { 
                        $("body").append( "<img src="+ val +">" );

It seems like this javascript code doesnt work in electron app. Any ideas anyone?