adding before request header set for Ajax to do HTTP Basic Auth