Fix generated JS on permissions admin page.