added provision to use all options provided by jQuery ajax