$("#myID").myF({
photo:[
{src:"images/1.jpg", title:"1"},
{src:"images/2.jpg", title:"2"},
{src:"images/3.jpg", title:"3"},
});
<div id="myID"/>
for (var i = 1, imgs_array = []; i <= 10; i++) {
imgs_array.push( {src: `images/${i}.jpg`, title: `${i}`} );
}
$("#myID").myF({
photo: imgs_array
});