Changed some argument type from XMLHttpRequest to jsXHR

Some callback functions was indicated to receive XMLHttpRequest rather
than jsXHR.