[TASK] Migrate ext:perm JavaScript to jQuery

In the main effort to remove prototype.js in
favor of RequireJS and jQuery, the JS structure
is adapted.

Resolves: #62936
Releases: master
Change-Id: I41cf626ff93c48efb7230876cae4a48dbc6ef8c0
Reviewed-on: http://review.typo3.org/32147
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>