Suggestion: it might be worth pulling out these URLs and grouping them with the `submit_url` up top. Maybe something like this?

```
var ajax_save_and_publish_url = "{url url='/policy/save/1' ajax=1};
var ajax_save_url = "{url url='/policy/save' ajax=1}";
```