Please comment when you do something non-standard, to be clear why it was necessary.  I assume you used `$.ajax` so you could pass the `async` parameter.  

Please do not hard-code the URL here, but declare a constant in the template.  As described below, I also think a new API endpoint for `refresh` is not necessary; you should be able to use an existing API endpoint.