getScripts = (scriptScr, path= '') => {
  const $ = jQuery
  let _arr = []

  if (!Array.isArray(scriptScr)) {
    scriptScr = [scriptScr]
  }

  if (!isCached(scriptScr)) {
    _arr = jQuery.map(scriptScr, src => {
      const options = {
        dataType: 'script',
        cache: true,
        url: (path || '') + src,
      }
      return jQuery.ajax(options).done(() => window.fbLoaded.js.push(src))
    })
  }

  _arr.push(jQuery.Deferred(deferred => $(deferred.resolve)))

  return jQuery.when(..._arr)
}
Loads an array of scripts using jQuery's `getScript`
@param  {string[]|string}  scriptScr    scripts
@param  {String} [path='']   optional to load form
@return {Promise}       a promise