added extra arguments to success and error callbacks in order to support JSONPa