Manage ajax loading and https in rot13