A more efficient way to make JQL (Jira Query Language)
Instead of passing parameters to this function you can pass a single object and iterate through it.

// instead of this
makeJQL("status", "project", "priority", "description", "summary");

// Try something like this 
makeJQL({
    status: "status",
    project: "project",
    priority: "priority"
});


And to itinerate the object passed to the function you can use Object.keys():

makeJQL: function(jqlObject){
    var arr = new Array();
    Object.keys(jqlObject).forEach(function(key) {
          array.push(key + "="+'"'+ jqlObject[key] +'"');
    });
}


Other good practice would be implement a function for each request in your application, creating a makeSomethingJQL will increase the readability of your code.