function is(type, obj) {
        const clas = Object.prototype.toString.call(obj).slice(8, -1);
        return obj !== undefined && obj !== null && clas === type;
    }
Load a template from a remote location using AJAX and saves in with the given ID.

Available parameters:

     async:       Should the HTTP request be performed asynchronously.
                     Defaults to true.
     method:      What method should be used to load the template
                     (fs or ajax)
     parser:      What method should be used to parse the template
                     (twig or source)
     precompiled: Has the template already been compiled.

@param {string} location  The remote URL to load as a template.
@param {Object} params The template parameters.
@param {function} callback  A callback triggered when the template finishes loading.
@param {function} errorCallback  A callback triggered if an error occurs loading the template.