Make digest-auth requests with javascript