Using JSONP with request

How can I use dataType:'jsonp' when making an ajax request in Framework7.
The Flickr API uses jsonp for same-origin policy reasons. There is an option to add &nojsoncallback=1 to the url but I cannot use this becuse it stops it working on localhost.

on: {
  init: function () {
    const self = this;
    self.request({
      url: 'https://api.flickr.com/services/feeds/photos_public.gne?tags=horse&format=json',
      dataType: 'jsonp',
      data: { "format": "json" },
      crossDomain: true,
      data: {
          format: "json",
          callback: function(){
             return true;
          }
      },
      success: function(data, status, xhr) {
        debug('success...');
        debug(data);
      },
      error: function (xhr, status) {
        debug('error...');
        debug(xhr);
      }
    });
  }
},

dataType must be just json and add callback query parameter to the end:

url: 'https://api.flickr.com/services/feeds/photos_public.gne?tags=horse&format=json&callback=?'
dataType: 'json'