adding support for iphone3 and ajax calls