ajax wrapper for IE/Chrome ajax requests

Fixes for ajax wrapper.