[NGRINDER-697]Use freemarker macro to make ftl more concise

Add callAjaxAPI(url, success, type, datas, errorMessage)  in utils.js