Added utility to simplify sending XMLHttpRequest