function get (parms) { $.ajax({ type: 'GET', url: parms.url, data: parms.data, success: function(res) { parms.cb(res) }, error: function() {} }) }