[fix] [minor] get_perm function added in form.js