Re #101, #386: Make AJAX requests for annotations use host and protocol from JS window.location