ScriptEndpointGenerator generates method with jQueryXmlHttpRequest return type instead of void (to make it easier to work with promises)