Added support for array as $.ajax success setting