Allow user to specify https or https connection for AJAX calls