fixes js error XMLHTTPRequest see pull/53