remove duplicated code that is in _permissions_form_js.html