added features to data param of 'ajax' call.
Data can now be a function