added shortucts for xhr request; test for added code

Attached to issue Issue #78